/*
 * file: Main.java
 */

/**
 *
 * @author Christina Ng Gek Ling U081583X
 * @author Novita Mayasari U085510R
 */
public class Main {

    static int option = 0;

    public static void main(String[] args) {
        clientGUI gui = new clientGUI();
        gui.setVisible(true);
        try {
            while (true) {
                switch (option) {
                    case 1:
                        gui.connect();
                        option = 0;
                        break;
                    case 2:
                        gui.currDir();
                        option = 0;
                        break;
                    case 3:
                        gui.changeDir();
                        option = 0;
                        break;
                    case 4:
                        gui.getFile();
                        option = 0;
                        break;
                    case 5:
                        gui.storeFile();
                        option = 0;
                        break;
                    case 6:
                        gui.listFiles();
                        option = 0;
                        break;
                    case 7:
                        gui.quit();
                        option = 0;
                        break;
                    case 8:
                        gui.parentDir();
                        option =0;
                        break;
                    case 9:
                        gui.delete();
                        option =0;
                        break;
                    default:
                        break;
                }
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
